package com.sky.merchant.controller;

import com.sky.common.annotation.Anonymous;
import com.sky.common.core.domain.AjaxResult;
import com.sky.merchant.domain.UserEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@Anonymous
@RestController
@RequestMapping("/createUser")
public class UserEntityController {
    @PostMapping
    public AjaxResult createUser( @Valid @RequestBody UserEntity user) {
        return AjaxResult.success("用户创建成功！");
    }
}